<template>
  <div class="pop-pu">
    <el-dialog :title="inputData.central + ''" :visible="dialogVisible" :before-close="handleClose" v-draggable :modal="false">
      <slot></slot>
      <span slot="footer" class="dialog-footer">
        <!-- <el-button @click="dialogVisible = false">关闭</el-button> -->
      </span>
    </el-dialog>
  </div>
</template>
   
<script>
import draggable from './draggable.js';

export default {
  directives: {
    draggable,
  },

  props: {
        inputData: {
            type: Object
        },
    },
  data() {
    return {
      dialogVisible: true,
    };
  },
  methods: {
    // handleClose(done) {
    //   done();
    // },
    handleClose(done) {
      console.log("关闭");
            // console.log(val);
      this.dialogVisible = false; // 关闭对话框
      this.$emit("closeDialog", this.inputData);
      done(); // 执行关闭操作
    },
  },
};
</script>


<style>
.pop-pu .el-dialog__wrapper  {
  height: 840px;
  /* width: 650px; */
  
}
.pop-pu .el-dialog__wrapper .el-dialog{
  height: 100%;

}
</style>